package com.lfx.concurrent.phaser;

import java.util.concurrent.Phaser;

/**
 * @author 李逢喜
 * create 2021/8/4
 */
public class Main {


    public static void main(String[] args) {
        Phaser phaser=new Phaser(10);
        for (int i = 0; i < 10; i++) {
            new MyThread(phaser,"面试者"+i).start();
        }
        System.out.println("线程启动完毕");
        phaser.awaitAdvance(0);

        System.out.println("主线程即将退出");
    }
}
